from tool import via_tool


data_root = r"F:\work\dataset\ocr\plate\get_test"
via_name='via_region_data_ori.json'
gen_type = "db_plate"
ratio = 0.95
via_tool.via_to_db(data_root, via_name, gen_type, ratio)